using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace API
{
    [ILRuntime.Other.NeedAdaptor]
    public interface IUpdateNotify
    {
        void notifyBegin();
        void notifyDescription(string text);
        void notifyProgress(float percent);
        void notifyEnd(bool succeed, string errMsg = "");

        bool isFileNeed(string path);
        bool shouldFileRemove(string path);
        string getStorageRoot();
    }

    public interface IAssetUpdater
    {
        void StartUpdate(string server, int port);
        void SetNotifyHandler(IUpdateNotify handler);
        void SetFullUpdate(bool b);
    }
}